Skip to content

sync with Microsoft fork#16

Draft
Tener wants to merge 79 commits intoteleport.1from
microsoft-main
Draft

sync with Microsoft fork#16
Tener wants to merge 79 commits intoteleport.1from
microsoft-main

Conversation

@Tener
Copy link

@Tener Tener commented May 21, 2025

No description provided.

shueybubbles and others added 30 commits March 28, 2023 15:48
* refactor!: enable hidden admin protocol

* feat: admin protocol

* fix admin test to skip in appveyor

* fix protocol parsing logic in URL()

* use SplitN

* handle ipv6 in URL()

* Update docs for v1.0 tag

BREAKING CHANGE: Add `Hidden()` method to `ProtocolParser` interface
* go mod vendor npipe to this repo

* switch to internal package
* fix: mips and mipsel builds

fixes: denisenkom#123

* swap el or le
* Allow for local dns resolution with a custom dialer

* Use a new dialer type

* fix unit test

* Add changelog & readme
…er (denisenkom#126)

* Added MarshalText() and UnmarshalJSON interfaces

- The existing MarshalText() for the UniqueIdentifier type had a bad signature. It omitted returning an error that the interface expects.
- Added UnmarshalJSON() interface to the UniqueIdentifier type with a test as well

* use strings.Replace instead of ReplaceAll
Remove message referring to MSFT fork since we are there.
* Fix: Handle extended chars in SQL instance names
* add core CEK parameters and types

* add column encryption featureext

* Add parsing of always encrypted tokens

* implement local cert key provider

* use key providers for decrypt

* implement EncryptColumnEncryptionKey for local cert

* add cipher data to parameters

* copy swisscom code locally

* implement Encrypt

* don't claim to support enclaves

* update readme

* fix Scan to use correct data types

* make cert store provider go1.17+

* rename files for clarity
* update dependencies and min Go version

* update reviewdog

* remove old SQL versions from PR build
Update title to stand out in search results.
* Feat: Implement change password during login

* use -v for go test

* move assert usage to go117+
apoorvdeshmukh and others added 29 commits September 19, 2023 19:32
…nisenkom#155)

* Add context parameter to key provider interface

* update error handling for AE key providers
* FEAT:support environment config of krb5

* update readme and version

* use client keytab file as default
…enisenkom#158 (denisenkom#159)

* fix: Added multisubnetfailover option that can be set to false to prevent issue denisenkom#158
* Fix mappings between LCIDs and code pages.

* Add test for fetching various LCIDs.

* Address Github automation feedback.

* Refine comments.

---------

Co-authored-by: Sergey Ten <sergeyten@microsoft.com>
* Reserve extra space for out parameter + tests.

* Test for []byte parameter.

---------

Co-authored-by: El-76 <anton.ostroumov@gmail.com>
* lazy initialization of charset maps

* initialize each charsetmap separately

* switch from init to get
* Update dependencies

* support dataverse endpoint
* Refactor UniqueIdentifier tests

* Parallelize tests

* Add NullableUniqueIdentifier type

* Add missing test case for UniqueIdentifier

* Improve error message

* Rename to NullUniqueIdentifier

* Add NullUniqueIdentifier to TestBulkcopy

* Add uniqueidentifier parsing to the list of Features

* Add Valid bool to NullUniqueIdentifier

* Handle null in UnmarshalJSON()

* Handle !Valid in Value(),String(),MarshalText()

---------

Co-authored-by: Norman Gehrsitz <git@gehrsitz.eu>
* preserve type information for Valuer parameters

* support uniqueidentifier in AE

* update readme
* fix: support nullable types for bulkcopy

* Add test cases for all nullable types

* Fix test cases

* Add bulkcopy test for invalid nullable types

* Add case in convertInputParameter to bypass uniqueidentifier type

* Add test cases for invalid nullable test

* Revert bypass change
* handle sql.NullTime parameters

* Match SQL sizes for sql.Nullxxx integer types

* handle custom nullable Valuer implementations
* Vulnerabilty depency x/net

* Att Dependencies
* Accept hierarchyid as a valid type

* error

* derp

* geography and geometry

* Return value

* Tests

* Typo

* Upper

* hasSize
…#173 fix (denisenkom#224)

* connection not closed when database name is incorrect denisenkom#173 fix

* test for leaked connections (connection not closed when database name is incorrect denisenkom#173

* Checking the number of open connections from local_net_address only

* using sql.NullString for localNetAddr

* handling local_net_address==NULL correctly
Bumps [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](Azure/azure-sdk-for-go@sdk/internal/v1.5.1...sdk/azcore/v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add traceid field to prelogin

* add clientid and pid to login7

* add logging of conn id to tdsSession

* fix go mod

* fix test

* update min Go to 118

Fixes denisenkom#226
Co-authored-by: Andrea Magnetto <Andrea.Magnetto@acronis.com>
Adds a connection string value to preserve the raw guid byte order returned by SQL Server.
* Add JSON-encoded version of NULL uniqueidentifier

* as literal name according RFC 7159

* Fix test to verify that Marshal writes the correct value
…enisenkom#242)

* Extract functions to convert three hundredths of a second to nanos

This commit doesn't change any logic. Just extracts the functions which
convert 1/300 of a second to nanos and back.

* Add failing test TestDatetimeAccuracy which tests DATETIME accuracy

Related issue: microsoft#181

* Fix rounding when nanos are converted to 1/300 of a second

We want rounding to be done half away from zero, like math.Round
does.

See: https://learn.microsoft.com/en-us/sql/t-sql/data-types/datetime-transact-sql?view=sql-server-ver16#rounding-of-datetime-fractional-second-precision

This commit fixes an issue: microsoft#181
* mssql: recognize builtin-commands

* Update mssql_test.go

* .golangci: fixed version in the config
@Tener Tener force-pushed the microsoft-main branch from a3ce042 to 6b3e174 Compare May 23, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.